package com.roy.galaxy.collection;

import java.util.Arrays;
import java.util.List;

/**
 * @author gang.wang1903@xiaobao100.cn
 * @Date: 2019-10-09 17:08
 */
public class ArraysAsListThreadSafe {

    public static void main(String[] args) {

        List<Integer> list = Arrays.asList(1,2,2,3);
        list.set(3,9);
        list.forEach(System.out::println);
    }
}
